<?php
/**
 * Copyright (c) 2019. Supefun<supefun@163.com> All rights reserved.
 */

namespace app\ximalaya\controller;

use think\Controller;

class Index extends Controller
{
    public function index()
    {
        //var_dump(App::getInstance()->env->get('VENDOR_PATH'));
        $config = env('VENDOR_PATH').'tecnickcom/tcpdf/config/tcpdf_config.php';

        require $config;
        //new \TCPDF();
        echo PDF_PAGE_FORMAT;
    }

    public function fileUrl()
    {
        $list = file('\\Downloads\\6.txt');

        foreach($list as $item){
            $item = trim($item);
            $name = pathinfo($item, PATHINFO_FILENAME);
            $data[$name] = $item;
        }

        echo join("\n", array_values($data));
    }

    public function fileIds()
    {
        return $this->fetch();
    }
}
